package org.eiahe.hr.attendance.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.ehe.common.excel.convert.ExcelDictConvert;
import org.eiahe.hr.attendance.domain.AttendanceType;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 考勤人员类型视图对象 hr_attendance_type
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AttendanceType.class)
public class AttendanceTypeVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 考勤类型ID
     */
    @ExcelProperty(value = "考勤类型ID")
    private Long typeId;

    /**
     * 考勤类型名称
     */
    @ExcelProperty(value = "考勤类型名称")
    private String typeName;

    /**
     * 是否需要打卡(0-不需要 1-需要)
     */
    @cn.idev.excel.annotation.ExcelProperty(value = "是否需要打卡", converter = ExcelDictConvert.class)
    @org.ehe.common.excel.annotation.ExcelDictFormat(dictType = "sys_yes_no")
    private String needPunch;

    /**
     * 允许打卡方式(多选,逗号分隔: 1-考勤机 2-APP 3-PC)
     */
    @ExcelProperty(value = "允许打卡方式")
    private String punchMethod;

    /**
     * 允许最早打卡时间(如06:00)
     */
    @ExcelProperty(value = "允许最早打卡时间")
    private String earliestPunchTime;

    /**
     * 允许最晚打卡时间(如23:59)
     */
    @ExcelProperty(value = "允许最晚打卡时间")
    private String latestPunchTime;

    /**
     * 启用状态(0-停用 1-启用)
     */
    @cn.idev.excel.annotation.ExcelProperty(value = "启用状态", converter = ExcelDictConvert.class)
    @org.ehe.common.excel.annotation.ExcelDictFormat(dictType = "sys_normal_disable")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
